<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>MS</title>
</head>
<body>
	<div style="text-align: center;" >
		<table align="center" border="1px" width="60%" >
			<tr>
				<th>序列</th>
				<th>Id</th>
				<th>用户名</th>
				<th>创建时间</th>
				<th>操作</th>
			</tr>
			<c:forEach items="${pages.records }" var="u" varStatus="status" >
				<tr>
					<td>${status.index+1 }</td>
					<td>${u.id }</td>
					<td>${u.username }</td>
					<td><fmt:formatDate value="${u.createtime }" pattern="yyyy-MM-dd" /></td>
					<th><a href="/test-1-4/dome/get/${u.id }" >修改</a>	|	<a href="/test-1-4/dome/delete/${u.id }" >删除</a></th>
				</tr>
			</c:forEach>
		</table><br />
		<a href="/test-1-4/dome/select" >首页</a>&nbsp;&nbsp;&nbsp;
		<a href="/test-1-4/dome/select/${pages.current - 1 }" >上一页</a>&nbsp;&nbsp;&nbsp;
		<c:if test="${pages.current < pages.pages }">
			<a href="/test-1-4/dome/select/${pages.current + 1 }" >下一页</a>&nbsp;&nbsp;&nbsp;
		</c:if>
		<c:if test="${pages.current >= pages.pages }">
			<a href="/test-1-4/dome/select/${pages.pages }" >下一页</a>&nbsp;&nbsp;&nbsp;
		</c:if>
		<a href="/test-1-4/dome/select/${pages.pages }" >尾页</a>
	</div>
</body>
</html>